package com.fafian.gdc.core;

import java.util.HashMap;
import java.util.Map;

public class BusCommand {
	private Command command;
	private Source source;
	private HashMap<String, String> extraInfo;
	
	
	public BusCommand(Command command, Source source) {
		this(command, source, new HashMap<String, String>());
	}
	
	public BusCommand(Command command, Source source, HashMap<String, String> extraInfo){
		super();
		this.command = command;
		this.source = source;
		this.extraInfo = extraInfo;
	}
	
	public void addExtraInfo(String name, String value){
		extraInfo.put(name, value);
	}
	
	public Map<String, String> getExtraInfo(){
		return extraInfo;
	}

	public Command getCommand() {
		return command;
	}

	public Source getSource() {
		return source;
	}
	

	

	
}
